package com.example.dao;

import com.example.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: John
 * @Date 2019/7/20 10:45
 */
@Repository
public interface UserDao  {

    User getByName(String userName);

//    void insert(User user);

    List<User> getUsersByRoleID(int roleID);

    User getById(int id);
}
